package JavaSE.d3;

public class Test17 {
    public static void main(String[] args) {
        int n=11;
        //循环行
        for (int i = 1; i <=n ; i++) {
            //打印空格
            for (int j = 1; j <=n-i ; j++) {
                System.out.print("  ");
            }
            //循环递增数字
            for (int j = 1; j <= i; j++) {
                System.out.print(j+" ");
            }
            //打印递减的数字
            for (int j = i-1; j >0; j--) {
                    System.out.print(j+" ");
            }

            System.out.println();
        }
    }
}
